<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap"  style="width: 60%">
    <ul class="nav nav-tabs">
        <li class="active"><a >销分记录</a></li>
        <li><a href="{:url('AdminWeixin/check_points')}" target="_blank">去消分</a></li>
    </ul>

    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminWeixin/pointslog')}">
        姓名:
        <input type="text" class="form-control" name="keyword" style="width: 170px;"
               value="{$keyword|default=''}" placeholder="请输入姓名">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminWeixin/pointslog')}">清空</a>
    </form>

    <!--<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">-->

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">用户ID</th>
                <th>用户名</th>
                <th>分值</th>
                <th>时间</th>
                <th>操作人</th>

                <th width="200">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.user.user_nickname}</td>
                    <td>{$vo.point}</td>
                    <td>{$vo.ctime|date="Y-m-d H:i"}</td>
                    <td>{$vo.operator|get_user_name}</td>

                    <!--<a href="{:url('AdminCategory/edit',['id'=>$vo.id])}">编辑</a>-->
                    <td><a class="btn btn-xs btn-primary btn-danger js-ajax-dialog-btn" href="{:url('AdminWeixin/point_use_log_del',['id'=>$vo.id])}">删除</a></td>


                </tr>
            </foreach>
            </tbody>
        </table>
    <ul class="pagination">{$page|default=''}</ul>
    <!--</form>-->
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'expanded'
            });
        });
    });

</script>
</body>
</html>